import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class CommonDivider extends StatelessWidget {
  const CommonDivider({
    Key? key,
    this.color = const Color(0XFFEDEFF2),
    this.height = 1,
    this.marginLeft = 0,
    this.marginRight = 0,
  }) : super(key: key);

  const CommonDivider.ten({
    Key? key,
    this.color = const Color(0XFFEDEFF2),
    this.height = 10,
    this.marginLeft = 0,
    this.marginRight = 0,
  }) : super(key: key);

  const CommonDivider.margin({
    Key? key,
    this.color = const Color(0XFFEDEFF2),
    this.height = 1,
    this.marginLeft = 15,
    this.marginRight = 15,
  }) : super(key: key);

  final Color color;
  final double height;
  final double marginLeft;
  final double marginRight;

  @override
  Widget build(BuildContext context) {
    return Container(
      color: color,
      height: height,
      margin: EdgeInsets.only(left: marginLeft.w, right: marginRight.w),
    );
  }
}
